
<?php 
require_once ('swiftmail/lib/swift_required.php'); //sinon y a des erreurs parceque config contient une instruction swiftmail
require_once('config.inc.php');

$cat=$_GET["cat"];


	echo'<div id="banner" style="background-image: url(\'img/greybg.jpg\'); background-color: black; color:white; background-position: center; background-repeat: no-repeat;">
			<div class="container intro_wrapper">
				<div class="inner_content"></div>
					
					<div class="col-md-2"><h1>SUB-CAT</h1></div><div class="col-md-10">
				
';
				$reqsubcat = $db->query('SELECT * FROM jktrade_cat WHERE cat_parentcat='.$cat.'');

				while ($subcat = $reqsubcat->fetch())
				{
				echo '<a href="browse_products.php?cat='.$subcat['cat_id'].'" class="btn btn-link">'.$subcat['cat_name'].'</a><br/>';
				}
				echo'	
					</div>
				</div>
			</div>';
		

		
		
		
		
?>
	
	
					
						
				
				